<?php
class MemberModel extends Model
{
	protected $fields = array(
		'uid',
		'email',
		'password',
		'nickname',
		'regip',
		'regdate',
		'lastip',
		'lastvisit',
		'adminid',
		'groupid',
		'intro',
		'_pk'=>'uid',
		'_autoInc'=>true
	);
	protected $_auto = array(
		array('nickname','haha'),
		array('lastip','get_client_ip','ADD','function'),
		array('lastvisit','time','ADD','function'),
		array('password','md5','ADD','function')
	);
	protected $_validate = array(
	array('email','require','电子邮箱不能为空！'),	
	);
}
?>